import Vue from 'vue'
import Router from 'vue-router'
import ClubDetail from '@/components/Recognition/detail'
import Share from '@/components/Recognition/share'
import Present from '@/components/Recognition/present'
import Auth from '@/components/Recognition/auth'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/recognition',
      query: { brand_id: 164 },
      name: 'Recognition',
      meta: {title: 'In Yoga'}
    },
    {
      path: '/recognition/detail/:id',
      name: 'ClubDetail',
      component: ClubDetail,
      meta: {title: '新店详情'}
    },
    {
      path: '/recognition/share',
      name: 'Share',
      component: Share,
      meta: {title: '分享好友'}
    },
    {
      path: '/recognition/present',
      name: 'Present',
      component: Present,
      meta: {title: '我的礼品'}
    },
    {
      path: '/recognition/auth',
      name: 'Auth',
      component: Auth,
      meta: {title: 'Auth'}
    }
  ]
})
